<?php $this->_extends('../_layouts/default_layout'); ?>

<?php $this->_block('contents'); ?>

<div class="tasks">
<?php
// user_id, group_id, account, user_name, password, ipzone, email, mobile, phone, join_day, dimission_day, birthday,
// created, updated, is_locked, register_ip, last_login, last_login_ip, login_count
// group_id, parent_id, group_name, left_value, right_value, description, has_users
?>
  <h1><?php echo $show_box['title'];?></h1>
<table cellSpacing="0" cellPadding="3" align="center" border="0" width="100%">
    <tr>
        <td align="center" class='bgTitle'>ID</td>
        <td align="center" class='bgTitle'>上级ID</td>
        <td align="center" class='bgTitle'>组名</td>
        <td align="center" class='bgTitle'>成员数</td>
        <td align="center" class='bgTitle'>操作</td>
    </tr>
  <?php foreach ($show_box['groups'] as $value): ?>
    <tr>
        <td align="center"><?php echo h($value->group_id); ?></td>
        <td align="center"><?php echo h($value->parent_id); ?></td>
        <td align="center">
            <span title="组说明：<?php echo h($value->description); ?>"><?php echo h($value->group_name); ?></span></td>
        <td align="center"><?php echo h($value->has_users); ?></td>
        <td align="center">
            <a href="<?php echo url('admin::groups/view', array('group_id' => $value->id())); ?>">详情</a>
            <a href="<?php echo url('admin::groups/edit', array('group_id' => $value->id())); ?>">编辑</a>
            <a href="<?php echo url('admin::groups/resetpw', array('group_id' => $value->id())); ?>">刷新成员数</a>
            <a href="<?php echo url('admin::groups/bind', array('group_id' => $value->id())); ?>">绑定权限</a>
            </td>
    </tr>
  <?php endforeach; ?>

</table>
  <?php /*分页部分*/ $this->_control('pagination', 'my-pagination', array('pagination' => $show_box['pagination'])); ?>

</div>


<?php $this->_endblock(); ?>



